
*** Set Fixed Effects and Clustering
global fe "courtq"
global clusvar "partyr"

frame create fsrobust str55 specification  beta se N 

** Main 
reghdfe evictionorder stringency if ivsamp==1, absorb($fe) cluster($clusvar)
frame post fsrobust ("Main") (_b[stringency]) (_se[stringency]) (e(N))

** Last courtroom
reghdfe evictionorder lzevictionorder if ivsamp==1, absorb($fe) cluster($clusvar)
frame post fsrobust ("Alternate Courtroom Construction") (_b[lzevictionorder]) (_se[lzevictionorder]) (e(N))

** controlling for other stringency
reghdfe evictionorder stringency staystringency emergrantstringency if ivsamp==1, absorb($fe) cluster($clusvar)
frame post fsrobust ("Controlling for other stringencies") (_b[stringency]) (_se[stringency]) (e(N))

***
reghdfe evictionorder allcasestringency if anycase==1, absorb($fe) cluster($clusvar)
frame post fsrobust ("All cases") (_b[allcasestringency]) (_se[allcasestringency]) (e(N))

frame fsrobust: saveold "${Inputs}\NY_fs_robustness.dta", replace


